function appContent() {
  const list = [
    { id: 1, name: "xiaowang" },
    { id: 2, name: "xiaowang3" },
    { id: 3, name: "xiaowang333" },
  ];
  return (
    <>
      <h2>列表循环</h2>
      <ul>
        {list.map((item, index) => (
          <li key={item.id}>
            <em>序号：{index + 1}</em> 姓名：{item.name}
          </li>
        ))}
      </ul>
    </>
  );
}
export default appContent;
